<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.supplier"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.supplier"/> </h1></td></tr>
</table>

<table align=center class="borderAll">
    <tr>
    <th><s:text name="label.supplier.firstName"/></th>
                    <th><s:text name="label.supplier.lastName"/></th>
                    <th><s:text name="label.supplier.registrationDate"/></th>
                    <th><s:text name="label.supplier.supplierCode"/></th>
                    <th><s:text name="label.supplier.backListed"/></th>


        <th><s:text name="label.item.itemName"/></th>
        <th><s:text name="label.item.itemDescription"/></th>
        <th><s:text name="label.item.quantityInStock"/></th>
        <th><s:text name="label.item.price"/></th>

    </tr>
   <s:iterator value="suppliers" var="supplier" >
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
        <tr>
                <td class="nowrap"><s:property value="firstName"/></td>
                <td class="nowrap"><s:property value="lastName"/></td>
                <td class="nowrap"><s:property value="registrationDate"/></td>
                <td class="nowrap"><s:property value="supplierCode"/></td>
                <td class="nowrap"><s:property value="backListed"/></td>

                 <td class="nowrap"><s:property value="items.itemName"/></td>
                 <td class="nowrap"><s:property value="items.itemDescription"/></td>
                 <td class="nowrap"><s:property value="items.quantityInStock"/></td>
                 <td class="nowrap"><s:property value="items.price"/></td>



         </tr>
	 </s:iterator>
    </table>
</body>
</html>
